package com.website.at.online.action;

import com.website.at.fw.action.AbstractActionEx;
import com.website.at.fw.blogic.IBussiness;
import com.website.at.online.bean.WelcomeForGuestIn;
import com.website.at.online.bean.WelcomeForGuestOut;

/**
 * 公司主页初期化表示
 * 
 * @author kongld
 *
 */
public class WelcomeForGuestAction extends AbstractActionEx {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 430059610574452266L;
	
	/**
	 * 入力数据
	 */
	private WelcomeForGuestIn welcomeForGuestIn = null;
	
	/**
	 * 出力数据
	 */
	private WelcomeForGuestOut welcomeForGuestOut = null;
	
	/**
	 * 业务处理Bean
	 */
	private IBussiness<WelcomeForGuestIn, WelcomeForGuestOut> bussiness = null;

	@Override
	public String doExectue() {
		WelcomeForGuestOut result = bussiness.execute(welcomeForGuestIn);
		if (result != null) {
			this.setWelcomeForGuestOut(result);
		} else {
			return ERROR;
		}
		
		return SUCCESS;
	}

	/**
	 * @return the welcomeForGuestIn
	 */
	public WelcomeForGuestIn getWelcomeForGuestIn() {
		return welcomeForGuestIn;
	}

	/**
	 * @param welcomeForGuestIn the welcomeForGuestIn to set
	 */
	public void setWelcomeForGuestIn(WelcomeForGuestIn welcomeForGuestIn) {
		this.welcomeForGuestIn = welcomeForGuestIn;
	}

	/**
	 * @return the welcomeForGuestOut
	 */
	public WelcomeForGuestOut getWelcomeForGuestOut() {
		return welcomeForGuestOut;
	}

	/**
	 * @param welcomeForGuestOut the welcomeForGuestOut to set
	 */
	public void setWelcomeForGuestOut(WelcomeForGuestOut welcomeForGuestOut) {
		this.welcomeForGuestOut = welcomeForGuestOut;
	}

	/**
	 * @param bussiness the bussiness to set
	 */
	public void setBussiness(
			IBussiness<WelcomeForGuestIn, WelcomeForGuestOut> bussiness) {
		this.bussiness = bussiness;
	}
}
